import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import '../main/view.dart';
import 'logic.dart';

class StartPage extends StatelessWidget {
  final logic = Get.put(StartLogic());

  StartPage({super.key});

  @override
  Widget build(BuildContext context) {
    logic.startTimer(() {
      Get.off(IndexPage());
      Get.offNamed("/IndexPage");
    });
    return Container(
        decoration: const BoxDecoration(color: Colors.white),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.end,
          children: [
            Padding(
                padding: EdgeInsets.only(bottom: 100.h),
                child: const Image(
                    image: AssetImage("assets/images/start_image_bg.png"),
                    width: 250))
          ],
        ));
  }
}
